const autoprefixer = require('autoprefixer')
const postcssImport = require('postcss-import')
const postcssUrl = require('postcss-url')

module.exports = {
  plugins: [
    // 处理@import
    postcssImport(),
    // 处理url
    postcssUrl(),
    // 自动前缀
    autoprefixer({
      browsers: [
        ">1%",
        "last 2 versions"
      ]
    })
  ]
}